package com.dsg.entity.account;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 开票記錄
 * </p>
 *
 * @author system
 * @since 2020-07-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dsg_account_check_detail")
@ApiModel(value = "DsgAccountCheckDetail对象", description = "开票記錄")
public class DsgAccountCheckDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主鍵")
    @TableId("OID")
    private String oid;

    @ApiModelProperty(value = "外键")
    @TableField("PID")
    private String pid;

    @ApiModelProperty(value = "支票号")
    @TableField("CHECK_NO")
    private BigDecimal checkNo;

    @ApiModelProperty(value = "收款人")
    @TableField("PAYEE")
    private String payee;

    @ApiModelProperty(value = "金额")
    @TableField("M_AMOUNT")
    private BigDecimal mamount;

    @ApiModelProperty(value = "日期")
    @TableField("M_TIME")
    private Date mtime;

    @ApiModelProperty(value = "状态")
    @TableField("STATUS")
    private Integer status;

    /**
     * 企業編號
     */
    @TableField(value = "ENT_CODE")
    @ApiModelProperty(value = "企業編號", name = "entCode")
    private String entCode;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATER")
    private String creater;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    @TableField("UPDATER")
    private String updater;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATE_TIME")
    private Date updateTime;

    @ApiModelProperty(value = "備註")
    @TableField("MARKS")
    private String marks;

    @ApiModelProperty(value = "银行名称")
    @TableField(exist = false)
    private String bankName;

    /************************枚舉**********************/
    public enum AppStatus {
        notInvoiced(0), invoiced(1), cancel(2);
        Integer code;

        AppStatus(int code) {
            this.code = code;
        }

        public Integer getCode() {
            return code;
        }
    }

}
